
package com.wyzz.hr.action;

import java.util.List;

import com.wyzz.hr.base.BaseAction;
import com.wyzz.hr.bo.IDepartmentBO;
import com.wyzz.hr.spring.SpringBeanFactory;

public class DepartmentManagementAction extends BaseAction {

	public DepartmentManagementAction() {
	}

	public String execute() throws Exception {
		IDepartmentBO deptbo = (IDepartmentBO) SpringBeanFactory
				.getBean("departmentBO");
		allDept = deptbo.FindAllDepartmentConHead();
		return "success";
	}

	public List getAllDept() {
		return allDept;
	}

	public void setAllDept(List allDept) {
		this.allDept = allDept;
	}

	private List allDept;
}
